/**   
 * Copyright 2011 COMERE Harold
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package etrl.core;

import com.google.gwt.dom.client.NativeEvent;

/**
 * \interface EventListener
 * \brief Interface to be able to listen dipatched events.
 * @author harold
 *
 */
public interface EventListener 
{
	/**
	 * \brief Listens to mouse down event.
	 * @param[in] event Event data.
	 */
	public abstract void onMouseDown(NativeEvent event);
	
	/**
	 * \brief Listens to mouse up event.
	 * @param[in] event Event data.
	 */
	public abstract void onMouseUp(NativeEvent event);
	
	/**
	 * \brief Listens to mouse move event.
	 * @param[in] event Event data.
	 */
	public abstract void onMouseMove(NativeEvent event);
	
	/**
	 * \brief Listens to mouse out event.
	 * @param[in] event Event data.
	 */
	public abstract void onMouseOut(NativeEvent event);
	
	/**
	 * \brief Listens to mouse wheel event.
	 * @param[in] event Event data.
	 */
	public abstract void onMouseWheel(NativeEvent event);
	
	/**
	 * \brief Listens to keyboard key down event.
	 * @param[in] event Event data.
	 */
	public abstract void onKeyDown(NativeEvent event);
	
	/**
	 * \brief Listens to keyboard key up event.
	 * @param[in] event Event data.
	 */
	public abstract void onKeyUp(NativeEvent event);
	
	/**
	 * \brief Listens to new frame event.
	 */
	public abstract void onFrameEvent();
}
